root.DataBasePool.DataBase{1}.Attributes.poolSize = '2';
root.DataBasePool.DataBase{1}.Attributes.port = '1433';
root.DataBasePool.DataBase{1}.Attributes.user = 'gta';
root.DataBasePool.DataBase{1}.Attributes.password = 'gta';
root.DataBasePool.DataBase{1}.Attributes.server = '192.168.100.124';
root.DataBasePool.DataBase{1}.Attributes.dataContent = 'QuantFundamentalData';
root.DataBasePool.DataBase{1}.Attributes.dataBase = 'GTA_QIP';
root.DataBasePool.DataBase{1}.Attributes.instance = '';

root.DataBasePool.DataBase{2}.Attributes.poolSize = '2';
root.DataBasePool.DataBase{2}.Attributes.port = '1433';
root.DataBasePool.DataBase{2}.Attributes.user = 'gta';
root.DataBasePool.DataBase{2}.Attributes.password = 'gta';
root.DataBasePool.DataBase{2}.Attributes.server = '192.168.100.59';
root.DataBasePool.DataBase{2}.Attributes.dataContent = 'QuantFactorData';
root.DataBasePool.DataBase{2}.Attributes.dataBase = 'GTA_QF';
root.DataBasePool.DataBase{2}.Attributes.instance = 'MSSQLSERVER2008';

root.DataBasePool.DataBase{3}.Attributes.poolSize = '2';
root.DataBasePool.DataBase{3}.Attributes.port = '1433';
root.DataBasePool.DataBase{3}.Attributes.user = 'gta';
root.DataBasePool.DataBase{3}.Attributes.password = 'gta';
root.DataBasePool.DataBase{3}.Attributes.server = '192.168.100.59';
root.DataBasePool.DataBase{3}.Attributes.dataContent = 'RiskFactorData';
root.DataBasePool.DataBase{3}.Attributes.dataBase = 'GTA_RF';
root.DataBasePool.DataBase{3}.Attributes.instance = 'MSSQLSERVER2008';

root.DataBasePool.DataBase{4}.Attributes.poolSize = '2';
root.DataBasePool.DataBase{4}.Attributes.port = '1433';
root.DataBasePool.DataBase{4}.Attributes.user = 'qicore';
root.DataBasePool.DataBase{4}.Attributes.password = 'qicore';
root.DataBasePool.DataBase{4}.Attributes.server = '192.168.100.162';
root.DataBasePool.DataBase{4}.Attributes.dataContent = 'HighFrequencyData';
root.DataBasePool.DataBase{4}.Attributes.dataBase = 'GTA_QIP';
root.DataBasePool.DataBase{4}.Attributes.instance = '';

struct2xml(root, 'DataBasePoolCfg.xml');
tree = xml2struct( 'DataBasePoolCfg.xml');